package com.ruoyi.system.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import lombok.Data;

import java.util.Date;

/**
 * 用户微信绑定对象 sys_wechat_bind
 * 
 * @author ruoyi
 * @date 2025-06-10
 */
@Data
public class SysWechatBind extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键ID */
    private Long id;

    /** 用户ID */
    @Excel(name = "用户ID")
    private Integer userId;

    /** 微信OpenID */
    @Excel(name = "微信OpenID")
    private String openId;

    /** 微信UnionID */
    @Excel(name = "微信UnionID")
    private String unionId;

    /** 微信昵称 */
    @Excel(name = "微信昵称")
    private String nickname;

    /** 微信头像 */
    @Excel(name = "微信头像")
    private String avatarUrl;

    /** 手机号 */
    @Excel(name = "手机号")
    private String phone;

    /** 绑定状态：0-解绑，1-已绑定 */
    @Excel(name = "绑定状态：0-解绑，1-已绑定")
    private Integer bindStatus;

    /** 最后登录时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "最后登录时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date lastLoginTime;




}
